<template>
  <div>
    <div class="intro hidden-xs-only" v-loading="loading">
      <el-row>
        <el-col :span="24">
          <div v-html="allData"></div>
        </el-col>
      </el-row>
    </div>
    <div class="hidden-sm-and-up intro1" v-loading="loading">
      <el-row>
        <el-col :span="24"> <div v-html="allData"></div></el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  mounted() {
    this.getList();
  },
  methods: {
    getList() {
      this.loading = true;
      this.$axios
        .get(`/baseInfo/consult/getConsultInfo/${this.$route.query.noticeId}`)
        .then((response) => {
          this.loading = false;
          console.log(response.data);
          this.allData = response.data.data.noticeContent;
        })
        .catch((error) => {
          this.loading = false;
          console.log(error);
        });
    },
  },
  data() {
    return {
      loading: false,
      totalPage: 0,
      pageSize: 8,
      pageNum: 1,
      allData: null,
      dongshiz: require("../../../../static/images/10.png"),
    };
  },
};
</script>

<style lang="less" scoped>
.fenye {
  margin-top: 40px;
}
.timeCls {
  margin-top: 10px;
}
.mainFont {
  width: 737px;
  height: 30px;
  white-space: nowrap; /*内容超宽后禁止换行显示*/
  overflow: hidden; /*超出部分隐藏*/
  text-overflow: ellipsis; /*文字超出部分以省略号显示*/
}
.mainFont {
  margin-top: 0;
}
.padd {
  padding: 13px;
  cursor: pointer;
  margin-top: 20px;
}
/deep/.el-card__body {
  padding: 0;
}
.donszCl {
  width: 140px;
  height: 150px;
}
.dong {
  margin: 0 auto;
}
.dong1 {
  width: 350px;
}
.englinsh {
  margin-top: 15px;
}
.intro h1 {
  margin-bottom: 20px;
  text-align: center;
}
.intro {
  width: 800px;
  padding: 0;
  margin: 0 auto;
  margin-bottom: 15px;
  margin-top: 15px;
  line-height: 22px;
}
.intro1 {
  padding: 0;
  margin: 0 auto;
  margin-bottom: 15px;
  margin-top: 15px;
  line-height: 22px;
}
</style>